package com.study.order_service.client;

import com.study.order_service.client.fallback.ProductClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: LWM
 * @date: 2019/2/21
 * @time: 11:12
 * Description: No Description
 */
@FeignClient(name = "product-service",fallback = ProductClientFallBack.class)
public interface ProductClinent {

    @GetMapping("/api/v1/product/find")
    String findById(@RequestParam("id") int id);
}
